package com.hospital.dao;

import com.hospital.dto.DeqCheckLogDto;
import com.hospital.dto.EqucheckDto;
import com.hospital.entity.Equcheck;
import com.hospital.entity.Equipment;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EqucheckDao {
    //增加仪器检查数据
    int add(Equcheck equcheck);
    //按照时间查询
//    int save(Equcheck equcheck);
//    //按照时间查询
//    List<Equcheck> all(@Param("name") String name, @Param("ctime") Date ctime);


    long selectCount(@Param("name") String name,@Param("ctime") Date ctime);

    List<Equcheck> selectPage(@Param("start") Integer start, @Param("size") Integer size,@Param("name") String name,@Param("ctime") Date ctime);

    Equcheck seletime(Date ctime);

    List<EqucheckDto> all2();

    long countlog(String equname);

    int deleids(int[] ids);

    List<DeqCheckLogDto> queryCheckLog(@Param("start") Integer start, @Param("size") Integer size,@Param("equname") String name);






}
